package com.morehair.bean.vo.wx;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.morehair.bean.pojo.Cart;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author raohui
 * @Date 2021/6/8 13:06
 */

@Data
public class WxCartIndexVo {

        private CartTotalBean cartTotal;
        private List<CartListBean> cartList;

        @Data
        public static class CartTotalBean {
                /**
                 * goodsCount : 7
                 * checkedGoodsCount : 7
                 * goodsAmount : 188176
                 * checkedGoodsAmount : 188176
                 */

                private int goodsCount;
                private int checkedGoodsCount;
                private Double goodsAmount;
                private Double checkedGoodsAmount;
        }

        @Data
        public static class CartListBean {
            /**
             * id : 113
             * userId : 1
             * goodsId : 1166008
             * goodsSn : 1166008
             * goodsName : Carat钻石 不粘厨具组合
             * productId : 244
             * price : 459
             * number : 6
             * specifications : ["标准"]
             * checked : true
             * picUrl : http://yanxuan.nosdn.127.net/615a16e899e01efb780c488df4233f48.png
             * addTime : 2021-06-08 11:53:30
             * updateTime : 2021-06-08 12:35:18
             * deleted : false
             */
            private int id;
            private int userId;
            private int goodsId;
            private String goodsSn;
            private String goodsName;
            private int productId;
            private double price;
            private int number;
            private boolean checked;
            private String picUrl;
            @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
            private Date addTime;
            @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
            private Date updateTime;
            private boolean deleted;
            private List<String> specifications;
        }
}
